// 消息相关API
import http from '../common/request.js'

// 获取消息列表
export function selectMessageNoticeList(data) {
  return http({
    url: '/min/program/presentation/selectMessageNoticeList',
    method: 'POST',
    data
  })
}

// 获取消息详情
export function selectMessageNoticeById(id) {
  return http({
    url: '/min/program/presentation/selectMessageNoticeById',
    method: 'POST',
    data: { id }
  })
}

// 标记消息为已读
export function readMessage(data) {
  return http({
    url: '/min/program/presentation/readMessage',
    method: 'POST',
    data
  })
}
